home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Cream of the Crop 22
/
Cream of the Crop 22.iso
/
program
/
eflibpt4.zip
/
DEMO
/
SCREEN
/
VIRTSCR1.PAS
< prev
next >
Wrap
Pascal/Delphi Source File
|
1996-08-16
|
1KB
|
34 lines
{ Borland Pascal Extended Function Library - EFLIB (C) Johan Larsson, 1996
Demonstration; virtual screen handling #1 - virtual text writes
EFLIB IS PROTECTED BY THE COPYRIGHT LAW AND MAY NOT BE COPIED, SOLD OR
MANIPULATED. FOR MORE INFORMATION, SEE PROGRAM MANUAL! THIS DEMONSTRAT-
ION PROGRAM MAY FREELY BE USED AND DISTRIBUTED. }
uses EFLIBSCR, CRT;
const SomeData : char = #177;
var VirtualScreen : VirtualScreenObjectType;
begin
Screen.Clear; { Clear the physical screen }
with VirtualScreen do begin
InitializeRegion (1, 1, 80, 25);
Store;
{ Use some of ScreenObjectType's methods on the virtual screen
(all inherited methods are adjusted to work virtually). }
WriteXYColor (65, 25, 'Virtual writing!', LightCyan, Black);
FillArea (1, 1, 20, 10, #219, LightBlue);
FillArea (60, 1, 80, 10, #219, Blue);
Delay (1000); { Just wait to show the empty screen }
InterceptRegion; { Restore the virtual screen on the physical screen }
Delay (1000); { Show the result of virtual writing }
end;
end.